﻿using System.Collections.Generic;
using ControleRepresentante.Logic.Models;
using WebSite.ViewModels.Fields;

namespace WebSite.ViewModels.ViewModelExtensions.EditViewModelExtensions
{
    public class FabricaTriviumEditViewModel : IEditViewModelExtension
    {
        public IEnumerable<IField> GetGeralAdditionalFields(object model)
        {
            yield return new CheckBoxField("Trivium", "isTrivium", ((Fabrica)model).FabricaTrivium.IsTrivium);
        }
    }
}